SUPPORT / SAMPLES & SAS NOTES
 

Support

Usage Note 41837: Versions of R accessible through the SAS/IML® interface

DetailsAboutRate It

The following table lists recent SAS® releases and the versions of R that each supports:

Compatibility with R releases

SAS®
Version
PROC IML®
Version
Release Date R Versions
9.2 TS1M0 N/A Jul 2009 2.6.1 - 2.11.1
9.2 TS2M3 9.2 TS2M3 Nov 2010 2.9.1 - 2.11.1
9.3 TS1M0 9.3 TS1M0 Jul 2011 2.9.1 - 2.15.3
9.3 TS1M2 12.1 Aug 2012 2.9.1 - 2.15.3
9.4 TS1M0 12.3 Jul 2013 2.13.0 - 3.0.1
9.4 TS1M1 13.1 Dec 2013 2.13.0 - 3.2.5
9.4 TS1M2 13.2 Aug 2014 2.13.0 - 3.2.5
9.4 TS1M3 14.1 Aug 2015 2.13.0 - 3.2.5
9.4 TS1M4 14.2 Nov 2016 2.13.0 - 3.6.3
9.4 TS1M5 14.3 Sep 2017 2.13.0 - 3.6.3
9.4 TS1M6 15.1 Nov 2018 2.13.0 - 3.6.3
Hot Fix 14.3-15.2 Feb 2021 4.0.x
9.4M8 15.3 Feb 2023 4.0.0-4.4.0

 

To date, five releases of R have been incompatible with prior SAS releases:

  • R 2.12.0, which introduced 64-bit R, changed the locations of certain libraries. To use R 2.12.0 or later, you must use SAS® 9.3M0 (TS1M0) or later.
  • R 3.0.0 changed certain aspects of the external API to R. To use R 3.0.0 or later, you must use SAS® 9.4M0 (TS1M0) or later.
  • R 3.0.2 changed an internal detail that SAS was using. To use R 3.0.2 or later, you must use SAS® 9.4M1 (TS1M1) or later.
  • R 3.3.0 broke compatibility with SAS/IML® 14.1 (SAS® 9.4M3) and earlier releases on Microsoft Windows only. The interface works on Linux. R 3.3.0 requires Red Hat Linux (RHEL) 7.1, so SAS customers who run an older Linux release might need to upgrade the operating system before they can compile R 3.3.0.
  • R 4.0 broke compatibility with all SAS releases. When you try to run R from SAS/IML, you might get error messages that include "ERROR: The final R statement is incomplete" and "ERROR: SAS is unable to transcode character data to the R encoding." You can download a hot fix that resolves the issue for SAS 9.4 M5, M6, and M7 (SAS Note 67110). The problem is fixed in SAS® 9.4M8 (TS1M8).

The following is an error message that might occur because of incompatible SAS and R versions:

ERROR: An installed version of R could not be found.

However, this message can also occur for other reasons.

SAS Institute ensures that each SAS release supports as many previous R releases as possible. However, after a version of SAS is released, it is impossible to ensure compatibility with later versions of R. If the interface to R changes, you will need to use a compatible version of R until the next release of SAS can support the change. In summary:

  • Prior to SAS 9.4, use R 2.15.x or earlier.
  • To access R 3.0.1, use SAS/IML® 12.3 (in SAS 9.4M0) or later.
  • To access R 3.0.2, use SAS/IML® 13.1 (in SAS 9.4M1) or later.

Here is information regarding 32-bit and 64-bit versions of SAS and R:

  • SAS running on a 32-bit edition of Windows requires the use of a 32-bit edition of R.
  • SAS running on a 64-bit edition of Windows can be used with either a 32-bit or a 64-bit edition of R.


Operating System and Release Information

Product FamilyProductSystemSAS Release
ReportedFixed*
SAS SystemSAS/IMLMicrosoft Windows Server 2012 R2 Datacenter9.4 TS1M7
Microsoft Windows Server 2012 Datacenter9.4 TS1M7
Microsoft Windows Server 2008 for x649.4 TS1M7
Microsoft Windows Server 20089.4 TS1M7
Microsoft Windows Server 2008 R29.4 TS1M7
Microsoft Windows Server 2003 for x64
Microsoft Windows Server 2003 Standard Edition
Microsoft Windows Server 2003 Enterprise Edition
Microsoft Windows Server 2003 Datacenter Edition
Microsoft Windows NT Workstation
Microsoft Windows 2000 Professional
Microsoft Windows 2000 Server
Microsoft Windows 2000 Datacenter Server
Microsoft Windows 2000 Advanced Server
Microsoft Windows 95/98
Microsoft Windows 8.1 Pro 32-bit9.4 TS1M7
Microsoft Windows 8.1 Pro9.4 TS1M7
Microsoft Windows 8.1 Enterprise x649.4 TS1M7
Microsoft Windows 8.1 Enterprise 32-bit9.4 TS1M7
Microsoft Windows 8 Pro x649.4 TS1M7
Microsoft Windows 8 Pro 32-bit9.4 TS1M7
Microsoft Windows 8 Enterprise x649.4 TS1M7
Microsoft Windows 8 Enterprise 32-bit9.4 TS1M7
OS/2
Microsoft® Windows® for x649.4 TS1M7
Microsoft Windows XP 64-bit Edition
Microsoft Windows Server 2003 Enterprise 64-bit Edition
Microsoft Windows Server 2003 Datacenter 64-bit Edition
Microsoft® Windows® for 64-Bit Itanium-based Systems
OpenVMS VAX9.4 TS1M7
z/OS9.4 TS1M7
Windows Vista
Windows Vista for x64
Windows Millennium Edition (Me)
Windows 7 Ultimate 32 bit9.4 TS1M7
Windows 7 Professional x649.4 TS1M7
Windows 7 Home Premium x649.4 TS1M7
Microsoft Windows Server 2012 R2 Std9.4 TS1M7
Microsoft Windows Server 2012 Std9.4 TS1M7
Microsoft Windows XP Professional
Windows 7 Enterprise 32 bit9.4 TS1M7
Windows 7 Ultimate x649.4 TS1M7
Windows 7 Professional 32 bit9.4 TS1M7
Windows 7 Home Premium 32 bit9.4 TS1M7
Windows 7 Enterprise x649.4 TS1M7
64-bit Enabled AIX9.4 TS1M7
64-bit Enabled HP-UX9.4 TS1M7
64-bit Enabled Solaris9.4 TS1M7
ABI+ for Intel Architecture9.4 TS1M7
AIX9.4 TS1M7
HP-UX9.4 TS1M7
HP-UX IPF9.4 TS1M7
IRIX9.4 TS1M7
Linux9.4 TS1M7
Linux for x649.4 TS1M7
Linux on Itanium9.4 TS1M7
OpenVMS Alpha9.4 TS1M7
OpenVMS on HP Integrity9.4 TS1M7
Solaris9.4 TS1M7
Solaris for x649.4 TS1M7
Tru64 UNIX9.4 TS1M7
* For software releases that are not yet generally available, the Fixed Release is the software release in which the problem is planned to be fixed.